const path = require('path')
module.exports = {
  devServer: {
    port: 3000,
    open: true
  },
  lintOnSave: false, // 关闭 eslint 保存代码就检查代码格式
  // 自定义webpack配置
  chainWebpack: config => {
    config.resolve.alias
      .set('@', path.join(__dirname, 'src'))
      .set('@api', path.join(__dirname, 'src/api'))
      .set('@components', path.join(__dirname, 'src/components'))
      .set('@views', path.join(__dirname, 'src/views'))
      .set('@utils', path.join(__dirname, 'src/utils'))
  }
}
